<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<c:set var="path" value="..${ctx}/common"/>

<script type="text/javascript">
$(function(){
	var actionName = encodeURI(encodeURI("国家代码更新"));
});
</script>

<div class="pageContent">
	<form method="post" action="${path}/update.html?tableName=BS_BERTH&tableAction=update" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<input type="hidden" name="js_back_function" value="${js_back_function}" />
		<div class="pageFormContent" layoutH="56">
			<fieldset>
				<dl>
					<dt>泊位代码：</dt>
					<dd>
					<input name="DOCK_ID" type="hidden" value="${DOCK_ID}" />
					<input name="BERTH_ID" type="text" value="${data.BERTH_ID}" class="required"/></dd>
				</dl>
				<dl>
					<dt>泊位名称：</dt>
					<dd><input name="BERTH_NAME" type="text" size="30" value="${data.BERTH_NAME}" class="required" /></dd>
				</dl>
				<dl>
					<dt>总长：</dt>
					<dd><input name="SHIP_LENGTH" type="text" size="30" value="${data.SHIP_LENGTH}" /></dd>
				</dl>
				<dl>
					<dt>靠船平台长度：</dt>
					<dd><input name="PLATFORM_LENGTH" type="text" size="30" value="${data.PLATFORM_LENGTH}" /></dd>
				</dl>
				<dl>
					<dt>设计靠泊能力：</dt>
					<dd><input name="DESIGH_ANCHOR_CAPACITY" type="text" size="30" value="${data.DESIGH_ANCHOR_CAPACITY}" /></dd>
				</dl>
				<dl>
					<dt>核定靠泊能力：</dt>
					<dd><input name="APPROVAL_ANCHOR_CAPACITY" type="text" size="30" value="${data.APPROVAL_ANCHOR_CAPACITY}" /></dd>
				</dl>
				<dl>
					<dt>开放验收：</dt>
					<dd><input name="OPEN_CHECK" type="text" size="30" value="${data.OPEN_CHECK}" /></dd>
				</dl>
				<dl>
					<dt>核定文号：</dt>
					<dd><input name="APPROVAL_DOC_NUM" type="text" size="30" value="${data.APPROVAL_DOC_NUM}" /></dd>
				</dl>
				<dl>
					<dt>核定日期：</dt>
					<dd><input name="APPROVAL_DATE" type="text" size="30" value="${data.APPROVAL_DATE}" /></dd>
				</dl>
				<dl>
					<dt>设计水深：</dt>
					<dd><input name="DESIGH_WATER_DEPTH" type="text" size="30" value="${data.DESIGH_WATER_DEPTH}" /></dd>
				</dl>
				<dl>
					<dt>实际水深：</dt>
					<dd><input name="ACTUAL_WATER_DEPTH" type="text" size="30" value="${data.ACTUAL_WATER_DEPTH}" /></dd>
				</dl>
				<dl>
					<dt>测量日期：</dt>
					<dd><input name="MEASURE_DATE" type="text" size="30" value="${data.MEASURE_DATE}" /></dd>
				</dl>
				<dl>
					<dt>装卸货物品种：</dt>
					<dd><input name="CARGO_TYPE" type="text" size="30" value="${data.CARGO_TYPE}" /></dd>
				</dl>
				<dl>
					<dt>投产日期：</dt>
					<dd><input name="ON_PRODUCT_DATE" type="text" size="30" value="${data.ON_PRODUCT_DATE}" /></dd>
				</dl>
				<dl>
					<dt>海事代码：</dt>
					<dd><input name="MSA_CODE" type="text" size="30" value="${data.MSA_CODE}" /></dd>
				</dl>
				<dl>
					<dt>省电子口岸代码：</dt>
					<dd><input name="JS_CODE" type="text" size="30" value="${data.JS_CODE}" /></dd>
				</dl>
				<dl>
					<dt>视频监控地址：</dt>
					<dd><input name="VIDEO_URL" type="text" size="30" value="${data.VIDEO_URL}" /></dd>
				</dl>
				<dl>
					<dt>使用状态：</dt>
					<dd>
					<select class="combox" name="STATE" >
						<option value="1" <c:if test="${data.STATE==1}">selected</c:if> >启用</option>
						<option value="0" <c:if test="${data.STATE==2}">selected</c:if> >禁用</option>
					</select>
					<input name="CREATE_USER" type="hidden" value="${data.CREATE_USER}" />
					</dd>
				</dl>
			</fieldset>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" >保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript">
/**
 * dialog上的表单提交回调函数
 * 服务器转回navTabId，可以重新载入指定的navTab. statusCode=DWZ.statusCode.ok表示操作成功, 自动关闭当前dialog
 * form提交后返回json数据结构,json格式和navTabAjaxDone一致
 */
function dialogAjaxDone(json){
	DWZ.ajaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
		// alert(json.callbackType);
		if(json.callbackType){
			// 回调父窗体方法
			var funname = $("input[name='js_back_function']").val();
			var func = eval(funname);
			new func();
			// setTimeout(function(){$.pdialog.closeCurrent();}, 100);
		}
	}
}

</script>